#include<iostream>
#include<cmath>
using namespace std;
int main() {
	int i =0, s = 0;
	do
	{
		i += 2;
		s += pow(i, 2);
	} while (s<1000);
	cout << i << endl;

	return 0;
}